package cn.earas.ip.frame;

import java.awt.Font;
import java.awt.Toolkit;

import javax.swing.GroupLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class LoadingFrame extends JFrame
{
    private static final long serialVersionUID = 1L;
    String text;
    private JLabel jLabel1;
    
    public LoadingFrame(final String text) {
        this.initComponents(this.text = text);
    }
    
    private void initComponents(final String text) {
        this.jLabel1 = new JLabel();
        this.setBounds(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 133, Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 78, 266, 156);
        this.setDefaultCloseOperation(0);
        this.setTitle("Loading...");
        this.jLabel1.setFont(new Font("\u5fae\u8f6f\u96c5\u9ed1", 0, 16));
        this.jLabel1.setText("\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u540e...");
        final GroupLayout layout = new GroupLayout(this.getContentPane());
        this.getContentPane().setLayout(layout);
        layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addContainerGap(49, 32767).addComponent(this.jLabel1).addGap(35, 35, 35)));
        layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(58, 58, 58).addComponent(this.jLabel1).addContainerGap(70, 32767)));
        this.pack();
    }
}
